<%@ include file="/WEB-INF/pages/common/taglibs.jsp" %>
<%@ include file="/WEB-INF/pages/common/checkpermission.jsp" %>

<script type="text/javascript">

    function cancelRecord() {
       submitForm("viewDetailForm", "clientSummary.action");
    }

    function downloadAttach(recordName){
         var currentForm = document.forms["viewDetailForm"];
        currentForm.elements["caseTenModel.selectId"].value = recordName;
        submitForm("viewDetailForm", "case10/download.action");
    }

</script>

<s:form name="viewDetailForm" action="">
    <s:hidden name="caseTenModel.selectId"/>   
    <table class="header1" width="100%">
        <tr class="normal">
         <td valign="bottom" class="page_title_bg" width="96%"><span class="page_title"><s:text name="label.case.select.title10"/></span></td>
        </tr>
    </table>
     <table border="0" align="center" cellpadding="0" cellspacing="0" class="body_content full_width bordered">
        <tr class="section_title">
            <td class="section_title" colspan="3">
                <font size="5"><s:text name="label.add.casesix.section1"/></font></td>
        </tr>
        <tr class="odd">
            <td class="form_label_padded" width="10%" nowrap><s:text name="label.casesix.title"/></td>
            <td class="form_label_padded" width="2%">:</td>
            <td class="txtData" align="left">
                    <s:property value="caseTenModel.title"/>
            </td>
        </tr>
        <tr class="odd">
            <td class="form_label_padded" width="10%" nowrap valign="top"><s:text name="label.casesix.content"/></td>
            <td class="form_label_padded" width="2%" valign="top">:</td>
            <td class="txtData" align="left">
                 <s:textarea name="caseTenModel.content" cols="120" rows="10" readonly="true"/>
            </td>
        </tr>
        <s:if test="caseTenModel.uploadFileName!=null">
            <tr class="odd">
                <td class="form_label_padded" width="10%" nowrap><s:text name="label.attachment"/></td>
                <td class="form_label_padded" width="2%">:</td>
                <td class="txtData" align="left">
                     <a href="javascript:downloadAttach('<s:property value="caseTenModel.caseTenId"/>')">
                        <s:property value="caseTenModel.uploadFileName"/>
                     </a>
                </td>
            </tr>
       </s:if>
       </table>
       <table>
        <tr>
            <td class="txtData" colspan="3">
                <input type="button" class="button" value="<s:text name='label.back'/>" onclick="cancelRecord();">
            </td>
        </tr>
    </table>
</s:form>



